package com.poetize.plus.entity.dto.page;

import jakarta.validation.constraints.NotNull;
import lombok.Data;

/**
 * @author zuosy
 * @created 2024/3/28 19:15
 */
@Data
public sealed class PageParam
        permits ArticlePageDTO, BackgroundImagePageDTO, CommentChildPageDTO, CommentFloorPageDTO, CommentPageDTO, FriendPageDTO, LabelPageDTO, NoticePageDTO, RolePageDTO, SortPageDTO, TimeLinePageDTO, UserPageDTO
{

    @NotNull(message = "当前页码不能为空")
    private Long current;

    @NotNull(message = "每页显示数不能为空")
    private Long size;
}
